home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / blt1.000 / blt1 / blt-1.7-for-STk / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-02-11  |  2.9 KB  |  96 lines

  1. #
  2. # Makefile for Stk version of BLT
  3. # Copyright (C) 1993, 1994 Erick Gallesio - I3S - CNRS / UNSA <eg@unice.fr>
  4. # Permission to use, copy, and/or distribute this software and its
  5. # documentation for any purpose and without fee is hereby granted, provided
  6. # that both the above copyright notice and this permission notice appear in
  7. # all copies and derived works.  Fees for distribution or use of this
  8. # software or derived works may only be charged with express written
  9. # permission of the copyright holder.  
  10. # This software is provided ``as is'' without express or implied warranty.
  11. #
  12. #           Author: Erick Gallesio [eg@unice.fr]
  13. #    Creation date: 25-Jul-1994 11:53
  14. # Last file update: 11-Feb-1995 21:58
  15. #
  16.  
  17. BLT        =./blt-1.7
  18. STK        = @STKDIR@
  19.  
  20. include $(STK)/config.make
  21.  
  22. USING        = -DUSE_TK
  23. CFLAGS        = $(STKCFLAGS) $(USING) $(DYNLOAD) $(DFLGS) $(OPTS) @DEFS@ \
  24.           -I. -I $(STK)/Src -I$(STK)/Tk -I$(STK)/Tcl -I$(STK)/Mp \
  25.            $(XINCLUDES) -DSTK_LIBRARY=\"$(libdir)\"
  26. INSTALL        = cp
  27.  
  28. # Shared objects
  29. SOBJ= so/bltGraph.o so/bltGrAxis.o so/bltGrBar.o so/bltGrElem.o \
  30.       so/bltGrHairs.o so/bltGrLegd.o so/bltGrLine.o so/bltGrMisc.o\
  31.       so/bltGrPS.o so/bltGrTag.o so/bltCutbuffer.o so/bltBell.o \
  32.       so/bltBitmap.o so/bltBusy.o so/bltDragDrop.o so/bltHtext.o \
  33.       so/bltList.o so/bltTable.o  so/bltUtil.o so/bltWin.o
  34.  
  35. # Objects
  36. OBJ=  o/bltGraph.o o/bltGrAxis.o o/bltGrBar.o o/bltGrElem.o \
  37.       o/bltGrHairs.o o/bltGrLegd.o o/bltGrLine.o o/bltGrMisc.o\
  38.       o/bltGrPS.o o/bltGrTag.o o/bltCutbuffer.o o/bltBell.o \
  39.       o/bltBitmap.o o/bltBusy.o o/bltDragDrop.o o/bltHtext.o \
  40.       o/bltList.o o/bltTable.o  o/bltUtil.o o/bltWin.o
  41.  
  42. TKLIB        = $(STK)/Tk/libtk.a
  43. TCLLIB        = $(STK)/Tcl/libtcl.a 
  44. MPLIB        = $(STK)/Mp/$(MP).a
  45. LIBS        = @LIBS@ -lm
  46.  
  47. ALLIBS    = $(MPLIB) $(TKLIB) $(TCLLIB) 
  48.  
  49. what:
  50.     @echo "You must specify 'static' or 'dynamic' for make"
  51.  
  52. stk-bin: libstk.a $(ALLIBS)
  53.     /bin/rm -f stk-bin
  54.     $(CC) $(CFLAGS) -o stk-bin userinit.c libstk.a $(ALLIBS) $(XLIBSW) $(LIBS)
  55.  
  56. ##############
  57.  
  58. static: libblt.a 
  59.     /bin/rm -f stk-bin
  60.     $(CC) $(CFLAGS) -o stk-bin userinit.c $(STK)/Src/libstk.a libblt.a $(ALLIBS) $(XLIBSW) $(LIBS)
  61.     
  62.  
  63. dynamic: blt.so
  64.  
  65. blt.so: 
  66.     @echo "Make dynamic version"
  67.     (cd $(BLT); \
  68.      make CC=$(CC) CFLAGS="$(CFLAGS)" \
  69.           SHLIB_CCFLAGS="$(SHLIB_CCFLAGS)" sharedlib)
  70.     $(CC) -c $(SHLIB_CCFLAGS) $(CFLAGS) -o blt.o blt.c
  71.     $(SHLIB_LOADER) $(SHLIB_LDFLAGS) blt.so blt.o $(SOBJ)
  72.     
  73. libblt.a: 
  74.     @echo "Make static version"
  75.     (cd $(BLT); make CC=$(CC) CFLAGS="$(CFLAGS)" normallib)
  76.     $(CC) -c $(CFLAGS) -o blt.o blt.c
  77.     ar rc libblt.a blt.o $(OBJ)
  78.     $(RANLIB) libblt.a
  79.  
  80. install:
  81.     @if test -f blt.so ;then \
  82.        $(INSTALL) blt.so $(execdir); \
  83.     fi
  84.     @if test -f stk-bin; then \
  85.        $(INSTALL) stk-bin $(execdir); \
  86.     fi
  87.     $(INSTALL) blt.stk $(libdir)/STk;
  88.     $(INSTALL) dd-protocol.stk $(libdir)/STk;
  89.     $(INSTALL) dd-protocol.stklos $(libdir)/STk;
  90.  
  91. clean:
  92.     (cd $(BLT); make clean)
  93.     /bin/rm -f blt.o blt.so stk-bin libblt.a *~ core 
  94.